@primary-color: #1890ff;
@warning-color: #e6a23c;
@danger-color: #f56c6c;
@font-color: #f0f0f0;
@font-grey-color: #a0a0a0;
@font-black-color: #1b2529;

/* 后台滚动条样式 */
/*滚动条整体部分*/
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 1);
}
/*滚动条的轨道*/
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 1);
}
/*滚动条里面的小方块，能向上向下移动*/
::-webkit-scrollbar-thumb {
  border-radius: 10px;
  border: 3px solid transparent;
  background: rgba(157, 165, 183, 0.3);
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(157, 165, 183, 0.5);
  border-color: rgba(157, 165, 183, 0.7);
}
/*边角，即两个滚动条的交汇处*/
::-webkit-scrollbar-corner {
  background: rgba(157, 165, 183, 0);
}

*,
*::before,
*::after {
  margin: 0;
  box-sizing: border-box;
  font-weight: normal;
}

html,
body,
#app {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  transition: color 0.5s, background-color 0.5s;
  line-height: 1.2;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans',
    'Droid Sans', 'Helvetica Neue', sans-serif;
  font-size: 15px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 2px;
}

button:not([class*='ant-']) {
  & {
    border: 1px solid transparent;
    border-radius: 0.5em;
    background: none;
    outline: none;
    font-size: 1em;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.25s;
  }
  &[primary],
  &[type='primary'] {
    color: @primary-color;
  }
  &[warning],
  &[type='warning'] {
    color: @warning-color;
  }
  &[danger],
  &[type='danger'] {
    color: @danger-color;
  }
  &:focus,
  &:focus-visible {
    outline: none;
  }
}

.color-primary {
  color: @primary-color;
}
.color-warning {
  color: @warning-color;
}
.color-danger {
  color: @danger-color;
}

.align-left {
  text-align: left;
}

.align-right {
  text-align: right;
}

.flex {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-start;
  box-sizing: border-box;

  &.flex-full {
    width: 100%;
    height: 100%;
  }
  &.flex-inline {
    display: inline-flex;
  }
  &.flex-column {
    flex-direction: column;
  }
  &.flex-wrap {
    flex-wrap: wrap;
  }
  &.flex-middle {
    align-items: center;
  }
  &.flex-start {
    justify-content: flex-start;
  }
  &.flex-end {
    justify-content: flex-end;
  }
  &.flex-between {
    justify-content: space-between;
  }
  &.flex-center {
    justify-content: center;
    align-items: center;
  }

  .flex-fixed {
    flex: none;
  }
  .flex-auto-width {
    flex: auto;
    width: auto;
    min-width: 0;
  }
  .flex-auto-height {
    flex: auto;
    height: auto;
    min-height: 0;
  }
}

.vex-table-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (prefers-color-scheme: light) {
  :root {
    color: @font-black-color;
    background-color: @font-color;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color: @font-color;
    background-color: @font-black-color;
  }
}
